import request from '@/utils/request'

// 查询论文完成人列表
export function listWinners(query) {
  return request({
    url: '/work/winners/list',
    method: 'get',
    params: query
  })
}

// 查询论文完成人详细
export function getWinners(id) {
  return request({
    url: '/work/winners/' + id,
    method: 'get'
  })
}

// 新增论文完成人
export function addWinners(data) {
  return request({
    url: '/work/winners',
    method: 'post',
    data: data
  })
}

// 修改论文完成人
export function updateWinners(data) {
  return request({
    url: '/work/winners',
    method: 'put',
    data: data
  })
}

// 删除论文完成人
export function delWinners(id) {
  return request({
    url: '/work/winners/' + id,
    method: 'delete'
  })
}
